<template>
    <div class="notice-bar">
      <div class="notice-bar-wrapper">
        <div class="iconfont icon-tixing">
        </div>
        <div class="notice-bar-content">
          <div class="content">
            {{text}}
          </div>
          </div>
          <div class="notice-bar-shareBtn">
            分享
          </div>
      </div>
    </div>
</template>

<script>
  export default {
    props: {
      text: {
        default: '尚有 667 位学生的家长无法收到作业通知,可通过..',
        type: String
      }
    },

    data () {

    }
  }
</script>

<style scoped>
  .notice-bar {
    width: 100%;
    background: rgba(255, 238, 213, 1);
    font-size: 24rpx;
    padding: 20rpx 0;
    align-items: center;
    line-height: 24rpx;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999999;
  }

  .icon-tixing {
    color: rgba(255, 170, 51, 1);
    flex-shrink: 0;
  }

  .notice-bar-content {
    overflow: hidden;
    letter-spacing: 2rpx;
    color: rgba(230, 134, 0, 1);
    padding-left: 10rpx;
  }

  .notice-bar-shareBtn {
    height: 64rpx;
    position: absolute;
    right: 0;
    background: rgba(245, 173, 73, 1);
    width: 132rpx;
    top: 0;
    line-height: 64rpx;
    text-align: center;
    color: #fff;
    font-size: 28rpx;
  }

  .content {
    font-size: 24rpx;
  }

  .notice-bar-wrapper {
    flex-wrap: nowrap;
    display: flex;
    height: 100%;
    padding: 0 40rpx;
  }
</style>
